package org.example.state;

import java.util.Random;

/**
 * @author wangbin
 * @date 2024/4/20
 * @vesion 1.0
 */
public class CanRaffleState extends State{

    RaffleActivity activity;

    public CanRaffleState(RaffleActivity activity) {
        this.activity = activity;
    }

    @Override
    public void deductMoney() {
        System.out.println("扣除了积分，无需扣除");

    }

    @Override
    public boolean raffle() {
        System.out.println("正在抽奖中");
        Random random = new Random();
        int num = random.nextInt(10);
        if(num==0){
            //activity.
        }else {

        }

        return false;
    }

    @Override
    public void dispensePrize() {
        System.out.println("不能发放奖品");

    }
}
